In the development of an app, one of its UITextField is designed to allow users to use input view of datePicker view to pick a date and also allows the users to delete a displayed date via clear button as a overlay view in the textField while edting. Data is stored via Cloudkit and a CKRecordValue type - NSDate is used for that UITextField. My question is how to change the NSDate to reflect the user deleting an existing date on the textField? It seems NSDate can't be nil as I got atomic error when trying to save a nil date. Direct database like MySQL gives an option of null value and I wonder if we may set a NSDate type to allow nil input?
Post
Replies
Boosts
Views
Activity
Error message:Your CloudKit containers can’t be shown at this time. Try again later. Please file a bug and include the request ID 154be80e-cda0-473d-8b37-f09b0c3d4c74.Any solution?